﻿package actions {	import flash.display.MovieClip;		public class Tile extends MovieClip{				var posX:int;		var posY:int;		var colour:uint;		var passable:Boolean = new Boolean(true);		var type:String;				public function Tile(xP:int, yP:int, c:uint, p:Boolean, type:String) {			posX = xP;			posY = yP;			colour = c;			passable = p;			this.type = type;			graphics.beginFill(c);			graphics.moveTo(0, 10);			graphics.lineTo(20, 0);			graphics.lineTo(40, 10);			graphics.lineTo(20, 20);			graphics.lineTo(0, 10);			graphics.endFill();		}				public function getX():Number {			return posX;		}				public function getY():Number {			return posY;		}				public function isPassable():Boolean {			return passable;		}				public function setPassable(p:Boolean) {			passable = p;		}				public function getTileType():String {			return type;		}	}}